package com.hwpt.dto.user;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

import static com.hwpt.constant.ExceptionMessageConstant.PASSWORD_EMPTY;
import static com.hwpt.constant.ExceptionMessageConstant.PHONE_EMPTY;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResetPasswordDTO implements Serializable {
    @NotBlank(message = PHONE_EMPTY)
    private String phone;
    @NotBlank(message = PASSWORD_EMPTY)
    private String password;
}
